SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{deb2599d0029ee1d45844b71119722b80c8d405e086cab41a82f2bccc0ca830d}Rafal{deb2599d0029ee1d45844b71119722b80c8d405e086cab41a82f2bccc0ca830d}' OR prCity = 'Rafal' OR prZip = 'Rafal' OR prStreet LIKE '{deb2599d0029ee1d45844b71119722b80c8d405e086cab41a82f2bccc0ca830d}Rafal{deb2599d0029ee1d45844b71119722b80c8d405e086cab41a82f2bccc0ca830d}' OR prCountry = 'Rafal') AND (prLocation LIKE '{deb2599d0029ee1d45844b71119722b80c8d405e086cab41a82f2bccc0ca830d}Spain{deb2599d0029ee1d45844b71119722b80c8d405e086cab41a82f2bccc0ca830d}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{deb2599d0029ee1d45844b71119722b80c8d405e086cab41a82f2bccc0ca830d}Spain{deb2599d0029ee1d45844b71119722b80c8d405e086cab41a82f2bccc0ca830d}' OR prCountry = 'Spain')